<template>
  <div class="pd-10">
    <div class="flex-between">
      <div class="left-box">
        <span>供应</span>
        <a-divider />
        <a-form :model="supplyFormState" layout="inline" :label-col="labelCol">
          <a-form-item label="MPS">
            <a-checkbox v-model:checked="supplyFormState.mps"></a-checkbox>
          </a-form-item>
          <a-form-item label="采购合同">
            <a-checkbox v-model:checked="supplyFormState.cght"></a-checkbox>
          </a-form-item>
          <a-form-item label="生产订单">
            <a-checkbox v-model:checked="supplyFormState.scdd"></a-checkbox>
          </a-form-item>
          <a-form-item label="已入未检数量">
            <a-checkbox v-model:checked="supplyFormState.yrwjsl"></a-checkbox>
          </a-form-item>
          <a-form-item label="采购订单">
            <a-checkbox v-model:checked="supplyFormState.cgdd"></a-checkbox>
          </a-form-item>
          <a-form-item label="渠道库存">
            <a-checkbox v-model:checked="supplyFormState.qdkc"></a-checkbox>
          </a-form-item>
          <a-form-item label="生产线日计划">
            <a-checkbox v-model:checked="supplyFormState.scxrjh"></a-checkbox>
          </a-form-item>
          <a-form-item label="现存量">
            <a-checkbox v-model:checked="supplyFormState.xcl"></a-checkbox>
          </a-form-item>
          <a-form-item label="请购单">
            <a-checkbox v-model:checked="supplyFormState.qgd"></a-checkbox>
          </a-form-item>
          <a-form-item label="锁定的计划订单">
            <a-checkbox v-model:checked="supplyFormState.sddjhdd"></a-checkbox>
          </a-form-item>
          <a-form-item label="库存在途">
            <a-checkbox v-model:checked="supplyFormState.kczt"></a-checkbox>
          </a-form-item>
          <a-form-item label="委外请购">
            <a-checkbox v-model:checked="supplyFormState.wwqg"></a-checkbox>
          </a-form-item>
          <a-form-item label="1" style="opacity: 0;">
            <a-checkbox></a-checkbox>
          </a-form-item>
          <a-form-item label="委外采购">
            <a-checkbox v-model:checked="supplyFormState.wwcg"></a-checkbox>
          </a-form-item>
        </a-form>
      </div>
      <div class="right-box">
        <span>需求</span>
        <a-divider />
        <a-form :model="demandFormState" layout="inline" :label-col="labelCol">
          <a-form-item label="销售订单">
            <a-checkbox v-model:checked="demandFormState.xsdd"></a-checkbox>
          </a-form-item>
          <a-form-item label="报价单">
            <a-checkbox v-model:checked="demandFormState.bjd"></a-checkbox>
          </a-form-item>
          <a-form-item label="考虑负库存">
            <a-checkbox v-model:checked="demandFormState.klfkc"></a-checkbox>
          </a-form-item>
          <a-form-item label="销售合同">
            <a-checkbox v-model:checked="demandFormState.xsht"></a-checkbox>
          </a-form-item>
          <a-form-item label="生产计划">
            <a-checkbox v-model:checked="demandFormState.scjh"></a-checkbox>
          </a-form-item>
          <a-form-item label="在制备料需求">
            <a-checkbox v-model:checked="demandFormState.zzblxq"></a-checkbox>
          </a-form-item>
          <a-form-item label="销售预测">
            <a-checkbox v-model:checked="demandFormState.xsyc"></a-checkbox>
          </a-form-item>
          <a-form-item label="计划订单">
            <a-checkbox v-model:checked="demandFormState.jhdd"></a-checkbox>
          </a-form-item>
          <a-form-item label="委外备料需求">
            <a-checkbox v-model:checked="demandFormState.wwblxq"></a-checkbox>
          </a-form-item>
          <a-form-item label="预测订单">
            <a-checkbox v-model:checked="demandFormState.ycdd"></a-checkbox>
          </a-form-item>
          <a-form-item label="主需求计划">
            <a-checkbox v-model:checked="demandFormState.zxqjh"></a-checkbox>
          </a-form-item>
          <a-form-item label="料品需求单">
            <a-checkbox v-model:checked="demandFormState.lpxqd"></a-checkbox>
          </a-form-item>
          <a-form-item label="安全库存">
            <a-checkbox v-model:checked="demandFormState.aqkc"></a-checkbox>
          </a-form-item>
          <a-form-item label="主需求计划">
            <a-checkbox v-model:checked="demandFormState.zxqjh"></a-checkbox>
          </a-form-item>
          <a-form-item label="1" style="opacity: 0;">
            <a-checkbox></a-checkbox>
            </a-form-item>
          <a-form-item label="库存规划">
            <a-checkbox v-model:checked="demandFormState.kcgh"></a-checkbox>
          </a-form-item>
          <a-form-item label="WBS">
            <a-checkbox v-model:checked="demandFormState.wbs"></a-checkbox>
          </a-form-item>
          <a-form-item label="1" style="opacity: 0;">
            <a-checkbox></a-checkbox>
          </a-form-item>
          <a-form-item label="生产计划">
            <a-checkbox v-model:checked="demandFormState.scjh"></a-checkbox>
          </a-form-item>
        </a-form>
      </div>

    </div>
  </div>
</template>

<script lang="ts" name="supplyAndDemand" setup>
  import { reactive, toRaw } from 'vue';
  import type { UnwrapRef } from 'vue';
  const labelCol = {
    style: {
      width: '120px'
    }
  };
  const supplyFormState: UnwrapRef < supplyFormState > = reactive({

  });
  const demandFormState: UnwrapRef < demandFormState > = reactive({

  });

</script>

<style lang="less" scoped>
  .flex-between {
    display: flex;
    justify-content: space-between;
    .left-box {
      width: 30%;
      .ant-form {
        width: 80%
      }
    }
    .right-box {
      width: 65%;
      .ant-form {
        width: 60%
      }
    }

  }

</style>
